import java.util.Scanner;
public class year {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        int sum = 0;

        int num = 0;

        while (sc.hasNextInt()) {
            int tmp = sc.nextInt();
            sum += tmp;
            num++;
        }

        System.out.println("sum = " + sum);

        System.out.println("avg = " + sum / num);

        sc.close();

    }

}
